<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/Zhang.js"></script>
</head>
<body>

</body>
<script>
    const data ={
        num:1
    };
    const zm = new Zhang({
        data,
        methods:{
            changeNum(v){
                console.log("changeNum",v)
                this.num = v;
            }
        }
    });
    console.log(zm.$data);// {num:1}
    console.log(zm.$data === data);// true
    console.log(zm.num)// 1
    zm.changeNum(100);
    console.log(zm.num,zm.$data.num);// 100
</script>
</html>